import request from '@/utils/request'

// export function login(data) {
//   return request({
//     url: '/jbl-user-center/api/admin/v1/sysUser/login',
//     method: 'post',
//     data
//   })
// }

// 作品-分页查询
export function worksPageList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/works/pageList',
    method: 'get',
    params: query
  })
}
// 作品-审核
export function worksAudit(query) {
  return request({
    url: '/jbl-business/api/admin/v1/works/audit',
    method: 'get',
    params: query
  })
}

// 作品-新增
export function worksAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/works/add',
    method: 'post',
    data: query
  })
}
// 作品-新增-机构标签查询
export function businessList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/business/list',
    method: 'get',
    params: query
  })
}
// 作品-新增-教师标签查询
export function getUsers(query) {
  return request({
    url: '/jbl-user-center/api/admin/v1/sysUser/pageUsersList',
    method: 'get',
    params: query
  })
}
// 作品-新增-课程标签查询
export function courseList(query) {
  return request({
    url: '/jbl-course/api/admin/v1/course/pageAdminList',
    method: 'get',
    params: query
  })
}

// 作品-删除
export function worksDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/works/deleteById',
    method: 'get',
    params: query
  })
}
// 作品-黑名单-新增
export function worksBlacklistAdd(query) {
  return request({
    url: '/jbl-business/api/admin/v1/worksBlacklist/add',
    method: 'post',
    data: query
  })
}
// 作品-黑名单-解除
export function worksBlacklistDeleteById(query) {
  return request({
    url: '/jbl-business/api/admin/v1/worksBlacklist/deleteById',
    method: 'get',
    params: query
  })
}
// 黑名单
export function getBlackList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/worksBlacklist/pageList',
    method: 'get',
    params: query
  })
}
// 作品-视频内容分页查询-分页查询
export function pageWorksCountList(query) {
  return request({
    url: '/jbl-business/api/admin/v1/works/pageWorksCountList',
    method: 'get',
    params: query
  })
}

